package pcjavanet.mobilesell.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PurchaseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PurchaseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDbidIsNull() {
            addCriterion("dbid is null");
            return (Criteria) this;
        }

        public Criteria andDbidIsNotNull() {
            addCriterion("dbid is not null");
            return (Criteria) this;
        }

        public Criteria andDbidEqualTo(Integer value) {
            addCriterion("dbid =", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidNotEqualTo(Integer value) {
            addCriterion("dbid <>", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidGreaterThan(Integer value) {
            addCriterion("dbid >", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("dbid >=", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidLessThan(Integer value) {
            addCriterion("dbid <", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidLessThanOrEqualTo(Integer value) {
            addCriterion("dbid <=", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidIn(List<Integer> values) {
            addCriterion("dbid in", values, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidNotIn(List<Integer> values) {
            addCriterion("dbid not in", values, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidBetween(Integer value1, Integer value2) {
            addCriterion("dbid between", value1, value2, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("dbid not between", value1, value2, "dbid");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidIsNull() {
            addCriterion("ref_shop_dbidshop_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidIsNotNull() {
            addCriterion("ref_shop_dbidshop_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidEqualTo(Integer value) {
            addCriterion("ref_shop_dbidshop_dbid =", value, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidNotEqualTo(Integer value) {
            addCriterion("ref_shop_dbidshop_dbid <>", value, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidGreaterThan(Integer value) {
            addCriterion("ref_shop_dbidshop_dbid >", value, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_shop_dbidshop_dbid >=", value, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidLessThan(Integer value) {
            addCriterion("ref_shop_dbidshop_dbid <", value, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_shop_dbidshop_dbid <=", value, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidIn(List<Integer> values) {
            addCriterion("ref_shop_dbidshop_dbid in", values, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidNotIn(List<Integer> values) {
            addCriterion("ref_shop_dbidshop_dbid not in", values, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_shop_dbidshop_dbid between", value1, value2, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidshopDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_shop_dbidshop_dbid not between", value1, value2, "refShopDbidshopDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidIsNull() {
            addCriterion("ref_color_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidIsNotNull() {
            addCriterion("ref_color_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidEqualTo(Integer value) {
            addCriterion("ref_color_dbid =", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidNotEqualTo(Integer value) {
            addCriterion("ref_color_dbid <>", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidGreaterThan(Integer value) {
            addCriterion("ref_color_dbid >", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_color_dbid >=", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidLessThan(Integer value) {
            addCriterion("ref_color_dbid <", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_color_dbid <=", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidIn(List<Integer> values) {
            addCriterion("ref_color_dbid in", values, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidNotIn(List<Integer> values) {
            addCriterion("ref_color_dbid not in", values, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_color_dbid between", value1, value2, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_color_dbid not between", value1, value2, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidIsNull() {
            addCriterion("ref_configuration_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidIsNotNull() {
            addCriterion("ref_configuration_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid =", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidNotEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid <>", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidGreaterThan(Integer value) {
            addCriterion("ref_configuration_dbid >", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid >=", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidLessThan(Integer value) {
            addCriterion("ref_configuration_dbid <", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid <=", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidIn(List<Integer> values) {
            addCriterion("ref_configuration_dbid in", values, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidNotIn(List<Integer> values) {
            addCriterion("ref_configuration_dbid not in", values, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_configuration_dbid between", value1, value2, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_configuration_dbid not between", value1, value2, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidIsNull() {
            addCriterion("ref_unit_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidIsNotNull() {
            addCriterion("ref_unit_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidEqualTo(Integer value) {
            addCriterion("ref_unit_dbid =", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidNotEqualTo(Integer value) {
            addCriterion("ref_unit_dbid <>", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidGreaterThan(Integer value) {
            addCriterion("ref_unit_dbid >", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_unit_dbid >=", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidLessThan(Integer value) {
            addCriterion("ref_unit_dbid <", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_unit_dbid <=", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidIn(List<Integer> values) {
            addCriterion("ref_unit_dbid in", values, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidNotIn(List<Integer> values) {
            addCriterion("ref_unit_dbid not in", values, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_unit_dbid between", value1, value2, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_unit_dbid not between", value1, value2, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andPlannumberIsNull() {
            addCriterion("plannumber is null");
            return (Criteria) this;
        }

        public Criteria andPlannumberIsNotNull() {
            addCriterion("plannumber is not null");
            return (Criteria) this;
        }

        public Criteria andPlannumberEqualTo(Integer value) {
            addCriterion("plannumber =", value, "plannumber");
            return (Criteria) this;
        }

        public Criteria andPlannumberNotEqualTo(Integer value) {
            addCriterion("plannumber <>", value, "plannumber");
            return (Criteria) this;
        }

        public Criteria andPlannumberGreaterThan(Integer value) {
            addCriterion("plannumber >", value, "plannumber");
            return (Criteria) this;
        }

        public Criteria andPlannumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("plannumber >=", value, "plannumber");
            return (Criteria) this;
        }

        public Criteria andPlannumberLessThan(Integer value) {
            addCriterion("plannumber <", value, "plannumber");
            return (Criteria) this;
        }

        public Criteria andPlannumberLessThanOrEqualTo(Integer value) {
            addCriterion("plannumber <=", value, "plannumber");
            return (Criteria) this;
        }

        public Criteria andPlannumberIn(List<Integer> values) {
            addCriterion("plannumber in", values, "plannumber");
            return (Criteria) this;
        }

        public Criteria andPlannumberNotIn(List<Integer> values) {
            addCriterion("plannumber not in", values, "plannumber");
            return (Criteria) this;
        }

        public Criteria andPlannumberBetween(Integer value1, Integer value2) {
            addCriterion("plannumber between", value1, value2, "plannumber");
            return (Criteria) this;
        }

        public Criteria andPlannumberNotBetween(Integer value1, Integer value2) {
            addCriterion("plannumber not between", value1, value2, "plannumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberIsNull() {
            addCriterion("realnumber is null");
            return (Criteria) this;
        }

        public Criteria andRealnumberIsNotNull() {
            addCriterion("realnumber is not null");
            return (Criteria) this;
        }

        public Criteria andRealnumberEqualTo(Integer value) {
            addCriterion("realnumber =", value, "realnumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberNotEqualTo(Integer value) {
            addCriterion("realnumber <>", value, "realnumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberGreaterThan(Integer value) {
            addCriterion("realnumber >", value, "realnumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("realnumber >=", value, "realnumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberLessThan(Integer value) {
            addCriterion("realnumber <", value, "realnumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberLessThanOrEqualTo(Integer value) {
            addCriterion("realnumber <=", value, "realnumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberIn(List<Integer> values) {
            addCriterion("realnumber in", values, "realnumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberNotIn(List<Integer> values) {
            addCriterion("realnumber not in", values, "realnumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberBetween(Integer value1, Integer value2) {
            addCriterion("realnumber between", value1, value2, "realnumber");
            return (Criteria) this;
        }

        public Criteria andRealnumberNotBetween(Integer value1, Integer value2) {
            addCriterion("realnumber not between", value1, value2, "realnumber");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceIsNull() {
            addCriterion("planunitprice is null");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceIsNotNull() {
            addCriterion("planunitprice is not null");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceEqualTo(Double value) {
            addCriterion("planunitprice =", value, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceNotEqualTo(Double value) {
            addCriterion("planunitprice <>", value, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceGreaterThan(Double value) {
            addCriterion("planunitprice >", value, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceGreaterThanOrEqualTo(Double value) {
            addCriterion("planunitprice >=", value, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceLessThan(Double value) {
            addCriterion("planunitprice <", value, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceLessThanOrEqualTo(Double value) {
            addCriterion("planunitprice <=", value, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceIn(List<Double> values) {
            addCriterion("planunitprice in", values, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceNotIn(List<Double> values) {
            addCriterion("planunitprice not in", values, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceBetween(Double value1, Double value2) {
            addCriterion("planunitprice between", value1, value2, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanunitpriceNotBetween(Double value1, Double value2) {
            addCriterion("planunitprice not between", value1, value2, "planunitprice");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyIsNull() {
            addCriterion("planmoney is null");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyIsNotNull() {
            addCriterion("planmoney is not null");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyEqualTo(Double value) {
            addCriterion("planmoney =", value, "planmoney");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyNotEqualTo(Double value) {
            addCriterion("planmoney <>", value, "planmoney");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyGreaterThan(Double value) {
            addCriterion("planmoney >", value, "planmoney");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("planmoney >=", value, "planmoney");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyLessThan(Double value) {
            addCriterion("planmoney <", value, "planmoney");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyLessThanOrEqualTo(Double value) {
            addCriterion("planmoney <=", value, "planmoney");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyIn(List<Double> values) {
            addCriterion("planmoney in", values, "planmoney");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyNotIn(List<Double> values) {
            addCriterion("planmoney not in", values, "planmoney");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyBetween(Double value1, Double value2) {
            addCriterion("planmoney between", value1, value2, "planmoney");
            return (Criteria) this;
        }

        public Criteria andPlanmoneyNotBetween(Double value1, Double value2) {
            addCriterion("planmoney not between", value1, value2, "planmoney");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceIsNull() {
            addCriterion("realunitprice is null");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceIsNotNull() {
            addCriterion("realunitprice is not null");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceEqualTo(Double value) {
            addCriterion("realunitprice =", value, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceNotEqualTo(Double value) {
            addCriterion("realunitprice <>", value, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceGreaterThan(Double value) {
            addCriterion("realunitprice >", value, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceGreaterThanOrEqualTo(Double value) {
            addCriterion("realunitprice >=", value, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceLessThan(Double value) {
            addCriterion("realunitprice <", value, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceLessThanOrEqualTo(Double value) {
            addCriterion("realunitprice <=", value, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceIn(List<Double> values) {
            addCriterion("realunitprice in", values, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceNotIn(List<Double> values) {
            addCriterion("realunitprice not in", values, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceBetween(Double value1, Double value2) {
            addCriterion("realunitprice between", value1, value2, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andRealunitpriceNotBetween(Double value1, Double value2) {
            addCriterion("realunitprice not between", value1, value2, "realunitprice");
            return (Criteria) this;
        }

        public Criteria andMemoIsNull() {
            addCriterion("memo is null");
            return (Criteria) this;
        }

        public Criteria andMemoIsNotNull() {
            addCriterion("memo is not null");
            return (Criteria) this;
        }

        public Criteria andMemoEqualTo(String value) {
            addCriterion("memo =", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotEqualTo(String value) {
            addCriterion("memo <>", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThan(String value) {
            addCriterion("memo >", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThanOrEqualTo(String value) {
            addCriterion("memo >=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThan(String value) {
            addCriterion("memo <", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThanOrEqualTo(String value) {
            addCriterion("memo <=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLike(String value) {
            addCriterion("memo like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotLike(String value) {
            addCriterion("memo not like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoIn(List<String> values) {
            addCriterion("memo in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotIn(List<String> values) {
            addCriterion("memo not in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoBetween(String value1, String value2) {
            addCriterion("memo between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotBetween(String value1, String value2) {
            addCriterion("memo not between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }

        public Criteria andNameLikeInsensitive(String value) {
            addCriterion("upper(name) like", value.toUpperCase(), "name");
            return this;
        }

        public Criteria andMemoLikeInsensitive(String value) {
            addCriterion("upper(memo) like", value.toUpperCase(), "memo");
            return this;
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}